package com.ruoyi.common.core.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 任务附件表
 * @TableName sys_task_file
 */
@Data
@ApiModel("任务附件模型")
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName(value ="sys_task_file")
public class SysTaskFile implements Serializable {

    @ApiModelProperty(value = "任务附件id")
    @TableId(type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "任务id")
    private Long taskId;

    @ApiModelProperty(value = "文件")
    private String file;

    @ApiModelProperty(value = "文件类型：1:文字,2:图片,3:视频")
    private Integer fileType;

    @ApiModelProperty(value = "文件创建时间")
    private Date createTime;

    @ApiModelProperty(value = "文件状态  0:停用，1:启用")
    private Integer state;

    @ApiModelProperty(value = "是否为事件 0：否  1：是")
    private Integer problem;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
